# -*- coding:utf-8 -*-
# 返回hello word
import json
import time
from flask import Flask, request, render_template


app = Flask(__name__)

@app.route("/", methods=["GET", 'POST'])
def put_in():
    print("In put_in")
    # 默认返回内容
    return_dict = {'return_code': '200', 'errcode': 'success', 'result': True, 'time':time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())}
    print('请求方式为------->', request.method)
    return json.dumps(return_dict, ensure_ascii=True)

if __name__ == "__main__":
    # app.run(host = "0.0.0.0",port=5010,debug=False)
    app.run(host = "0.0.0.0",port=10000,debug=False)
